namespace ScrumSprintMonitor.ServerAdapter.TFS.TemplateAdaptors
{
    #region #using Directives

    using System;
    using System.ComponentModel.Composition;

    using Infrastructure;

    using Isolation.TeamFoundationServer;

    using PreEmptive.Attributes;

    #endregion

    [Export(typeof(IProcessTemplateAdapter))]
    public class VSTSScrumProcessTemplateAdapter : IProcessTemplateAdapter
    {
        #region IProcessTemplateAdapter Members

        [Feature("VSTS Process Template")]
        public void Initialize()
        {
        }

        public string ProcessTemplateName
        {
            get { return "Light Weight Scrum"; }
        }

        public IWorkItemAdapter AdaptWorkItem(object workItem)
        {
            return new VSTSScrumWorkItemAdapter((IWorkItem) workItem);
        }

        public string[] WorkItemTypeNames
        {
            get { return new[] {"BackLogItem", "User Story", "Defect"}; }
        }

        #endregion
    }
}